package com.lzy.crm.service;

import java.util.List;

import com.lzy.crm.base.page.PageQuery;
import com.lzy.crm.base.service.BaseService;
import com.lzy.crm.dao.criteria.CrowdCriteria;
import com.lzy.crm.domain.Crowd;
import com.lzy.crm.domain.CrowdUser;
import com.lzy.crm.domain.PpUser;
import com.lzy.crm.domain.User;
import com.lzy.crm.vo.PlayerInfo;

/**
 * 牌友群功能
 * @author Administrator
 *
 */
public interface CrowdService extends  BaseService<Crowd, CrowdCriteria> {
	
	
	/**
	 * 获取自己创建的牌友圈信息
	 * @param unionId
	 * @return
	 */
	public List<Crowd> getMyCrowdListByUnionId(String unionId);
	
	
	
	
	/**
	 * 获取自己加入的牌友圈信息
	 * @param unionId
	 * @return
	 */
	public List<Crowd> getJoinCrowdListByUnionId(String unionId);
	
	
	/**
	 * 获取自己加入的牌友圈信息
	 * @param unionId
	 * @return
	 */
	public List<Crowd> getJoinCrowdListByUnionIdbyPage(String unionId,PageQuery pageQuery);
	
	
	
	
	
	/**
	 * 创建牌友圈
	 * @param crowdName
	 * @param remark
	 * @param user
	 */
	public Integer addCrowd(String crowdName,String remark,PpUser user )throws Exception;
	
	/**
	 * 创建牌友圈
	 * @param crowdName
	 * @param remark
	 * @param user
	 */
	public Integer addCrowdByMessage(String crowdName,String remark,PlayerInfo playerInfo )throws Exception;
	
	
}
